import request from '@/utils/request';

// 订单统计
export function data(query) {
	return request({
		url: '/mall/order/getInfoNum',
		method: 'post',
		data: query,
	});
}
// 每日订单数
export function getOrderIncomeDaily(query) {
	return request({
		url: '/mall/order/getOrderIncomeDaily',
		method: 'post',
		data: query,
	});
}
// 每日订单数
export function getOrderNumDaily(query) {
	return request({
		url: '/mall/order/getOrderNumDaily',
		method: 'post',
		data: query,
	});
}
export function addUserNumDaily(query) {
	return request({
		url: '/mall/order/addUserNumDaily',
		method: 'post',
		data: query,
	});
}

// 每日订单数
export function indexNum(query) {
	return request({
		url: '/mall/order/getIndexNum',
		method: 'post',
		data: query,
	});
}

// 每日订单数
export function supplierIndexStatistics(query) {
	return request({
		url: '/mall/supplier-order/orderStatistics',
		method: 'post',
		data: query,
	});
}
